/*
 *  com_lidlib_lib_LidlibCommon.cpp
 *  LID Library
 *
 *  Created by Alexander Trutchenko on 09/11/11.
 *  Copyright 2011 League of Independent Developers. All rights reserved.
 *
 */

#include "lid_lib/src/service/android/com_lidlib_lib_LidlibCommon.h"

#include "lid_lib/src/file_managment/LLFileUtils.h"

#include <android/log.h>
#include <jni.h>

extern "C"
{
	void Java_com_lidlib_lib_LidlibCommon_nativeSetPaths(JNIEnv*  env, jobject thiz, jstring apkPath)
	{
		const char* str;
		jboolean isCopy;
		str = env->GetStringUTFChars(apkPath, &isCopy);
		if (isCopy) {
			lidlib::LLFileUtils::setResourcePath(str);
			env->ReleaseStringUTFChars(apkPath, str);
		}
	}
}
